package cn.gailvlun.gll.presentation.chat.util

import android.text.Html
import android.text.Spanned
import cn.gailvlun.gll.net.Member
import cn.gailvlun.gll.presentation.chat.adapter.CheckCpAdapter


object Util {
    @JvmStatic
    fun getMemberId(member: Member): Spanned {
        return Html.fromHtml("概率论ID: " + member.owner.gaiid)
    }

    @JvmStatic
    fun getHeader(type: CheckCpAdapter.Type): String {
        return if (type == CheckCpAdapter.Type.MATCHED_HEADER) "CP:" else "匹配失败："
    }
}